<?php
namespace app\common\validate;
use think\Validate;

class Merchant extends Validate
{
    protected $rule = [
        ['account','require','商户账号不能为空'],
        ['name','require','商户名称不能为空'],
        ['phone','require','手机号不能为空'],
        ['email','require|email','邮箱不能为空|邮箱格式不正确']
    ];
    protected $scene = [
        'add' => ['account','name','phone','email']
    ];
}